package com.nbsaas.boot;

import java.util.UUID;

public class Demo {
    public static void main(String[] args) {
        for (int i = 0; i < 999999; i++) {
            CustomFeistelNumHandle nh = new CustomFeistelNumHandle(UUID.randomUUID().toString());
            Integer origin = i;
            String token = nh.encode(origin);
            Integer recovered = nh.decode(token);
             if (!origin.equals(recovered)){
                 System.out.println("ERROR: " + origin + " != " + recovered);
             }
        }

    }
}
